package br.cin.stadium.middleware.media;

import br.cin.stadium.middleware.FormatException;
import br.cin.stadium.middleware.marshall.MarshallInputStream;
import br.cin.stadium.middleware.marshall.MarshallOutputStream;
import br.cin.stadium.middleware.marshall.Serializable;

/**
 * This class is only to make reduce class association.<br>
 * All classes that can be write in space, or exchanged via network, shall extends it.
 * 
 * @author Fabiano, Jorge, Rafael, Vando
 * 
 */

public abstract class ObjectSerializable implements Serializable {

	/* (non-Javadoc)
	 * @see br.cin.stadium.middleware.marshall.Serializable#marshal(br.cin.stadium.middleware.marshall.MarshallOutputStream)
	 */
	public abstract void marshal(MarshallOutputStream mos) throws FormatException;

	/* (non-Javadoc)
	 * @see br.cin.stadium.middleware.marshall.Serializable#unmarshal(br.cin.stadium.middleware.marshall.MarshallInputStream)
	 */
	public abstract void unmarshal(MarshallInputStream mis) throws FormatException;

}
